﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Sequence
{
    public partial class FrmGetValues : Form
    {
        public FrmGetValues()
        {
            InitializeComponent();
        }
        public List<string> arrResults;

        public FrmGetValues(List<string> arrValues)
        {
            InitializeComponent();
            foreach (string sval in arrValues)
            {
                int iRow = dgvInput.Rows.Add();
                dgvInput.Rows[iRow].Cells[0].Value = sval;               
            }
        }


        private void FrmGetValues_Load(object sender, EventArgs e)
        {

        }

        private void cmdOK_Click(object sender, EventArgs e)
        {
            arrResults = new List<string>();
            foreach (DataGridViewRow oRow in dgvInput.Rows )
            {
                arrResults.Add(oRow.Cells[0].Value.ToString() + "\t" + oRow.Cells[1].Value.ToString());
            }
        }
    }
}
